﻿using TrackSystem.Contracts;
using TrackSystem.Entities.Dtos.Sensor;

namespace TrackSystem.UI.Server.HttpRepository.Sensor
{
    public interface ISensorHttpRepository
    {
        Task<ApiResult<SensorWithChannelDto?>> GetSingleSensor(int id);

        Task<IEnumerable<SensorWithChannelDto>> GetAll();


        Task<ApiResult<SensorWithChannelDto>> InsertAsync(SensorWithChannelDto channel);

        Task<ApiResult<SensorWithChannelDto>> UpdateAsync(SensorWithChannelDto channel);

        Task<ApiResult<SensorWithChannelDto>> DeleteAsync(int id);
    }
}
